package org.rugby.online.impl;

import static org.junit.Assert.*;

import java.util.List;
import java.util.Locale;

import org.junit.Before;
import org.junit.Test;
import org.rugby.online.core.humans.RboPlayer;
import org.rugby.online.core.humans.RboPlayerTeam;
import org.rugby.online.impl.DefaultPlayer;
import org.rugby.online.impl.DefaultPlayerTeam;

public class DefaultPlayerTeamTest {

	private RboPlayerTeam team;
	
	@Before
	public void setUp() throws Exception {
		team = new DefaultPlayerTeam();
		team.getPlayers().add(new DefaultPlayer(Locale.FRENCH));
	}

	@Test
	public void testGetPlayers() {
		List<RboPlayer> playerList = team.getPlayers();
		assertNotNull(playerList);
		assertTrue(playerList.size() == 1);
	}

	@Test
	public void testGetName() {
		assertNotNull(team.getName());
	}

	@Test
	public void testGetId() {
		assertNotNull(team.getId());
	}

}
